package cn.wolfcode.wolf2w.query;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class TravelQuery extends QueryObject{
    private String destId; //默认一个目的地id

    private int dayType =-1;//出行时间

    private int perExpendType =-1;//人均消费

    private int orderType =-1;//排序操作



    //映射转化
    public TravelCondition getDay(){
        return TravelCondition.DAY_MAP.get(dayType);
    }

    public TravelCondition perExpendType(){
        return TravelCondition.PEREXPEND_MAP.get(perExpendType);
    }

}
